home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.beans.PropertyVetoException;
- import javax.swing.AbstractAction;
-
- public class BasicInternalFrameTitlePane$RestoreAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicInternalFrameTitlePane this$0;
-
- public BasicInternalFrameTitlePane$RestoreAction(BasicInternalFrameTitlePane var1) {
- super("Restore");
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- if (this.this$0.frame.isMaximizable() && this.this$0.frame.isMaximum()) {
- try {
- this.this$0.frame.setMaximum(false);
- } catch (PropertyVetoException var3) {
- }
- } else if (this.this$0.frame.isIconifiable() && this.this$0.frame.isIcon()) {
- try {
- this.this$0.frame.setIcon(false);
- } catch (PropertyVetoException var2) {
- }
- }
-
- }
- }
-